<template>
  <div class="duration">
    <el-button class="backBtn" type="primary" size="small" @click="$router.push('/index/projectmange')">返回</el-button>
    <p style="text-align: center;font-weight: bold;margin-top: 30px;font-size: 30px;">项目工序</p>
    <el-table :data="projectInfo.duration" border stripe style="margin-top: 30px;">
      <el-table-column prop="type" label="类型" />
      <el-table-column prop="start_date" label="开始时间" />
      <el-table-column prop="end_date" label="结束时间" />
      <el-table-column prop="days" label="持续时间" />
    </el-table>
  </div>
</template>

<script>
export default {
  props: ['projectInfo']
}
</script>

<style scoped lang="less">
.duration {
  box-sizing: border-box;
  position: absolute;
  left: 200px;
  top: 0;
  display: inline-block;
  width: 900px;
  padding: 20px;
  height: 90vh;
  .backBtn {
    position: absolute;
    right: 30px;
    top: 30px;
  }
}

@media screen and (max-width: 768px) {
  .duration{
    left: 20vw;
  }
}

</style>
